import Mock from 'mockjs'

Mock.mock('/api/user', {
    'data|20-500': [
        {
            'id|+1': 0,
            'name': '@name',
            'age|18-35': 1,
            'sex|': "@cword('01',1)",
            'email|': '@email',
            'phone|':/^1[3-9][0-9]{9}$/
        }
     ]
})